package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.OutboxDao;
import io.renren.entity.OutboxEntity;
import io.renren.service.OutboxService;



@Service("outboxService")
public class OutboxServiceImpl implements OutboxService {
	@Autowired
	private OutboxDao outboxDao;
	
	@Override
	public OutboxEntity queryObject(Integer id){
		return outboxDao.queryObject(id);
	}
	
	@Override
	public List<OutboxEntity> queryList(Map<String, Object> map){
		return outboxDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return outboxDao.queryTotal(map);
	}
	
	@Override
	public void save(OutboxEntity outbox){
		outboxDao.save(outbox);
	}

	@Override
	public void update(OutboxEntity outbox){
		outboxDao.update(outbox);
	}
	
	@Override
	public void delete(Integer id){
		outboxDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		outboxDao.deleteBatch(ids);
	}
	
}
